let defaultState={
    dataimg:[],
    contentTitle:[{
        id:1,title:'上衣'},
        {id:2,title:'休闲装'},
        {id:3,title:'牛仔裤'},
        {id:4,title:'裙子套装'
    }],
    choice:1,
    contList:[],
    title:'111',
    Imbibition:false,

}
export default (state=defaultState,action)=>{
    const newState = JSON.parse(JSON.stringify(state))
    switch(action.type){
        case 'GET_SWIPER_LIST':
            newState.dataimg = action.payload
            break
        case 'GTE_SWIPER_SHOOP':
            newState.contList = action.payload
            break
        case 'IMBIBITION':
            
            newState.Imbibition = action.payload
            break
        // case 'GO_DETAILS':
        case 'TRANS_fOR':
            newState.choice = action.payload.id
            break
    }
    // console.log(newState)
    return newState
}